//
//  AWRefreshHeader.m
//  awu
//
//  Created by centling on 15/9/1.
//  Copyright (c) 2015年 ifly. All rights reserved.
//

#import "AWRefreshHeader.h"

@implementation AWRefreshHeader

- (void)prepare
{
    [super prepare];
    NSArray *imageArray=@[[UIImage imageNamed:@"refresh_down_1"],[UIImage imageNamed:@"refresh_down_2"],[UIImage imageNamed:@"refresh_down_3"],[UIImage imageNamed:@"refresh_down_4"]];
    // 设置普通状态的动画图片
    [self setImages:@[[UIImage imageNamed:@"refresh_down_1"]] forState:MJRefreshStateIdle];
    
    // 设置即将刷新状态的动画图片（一松开就会刷新的状态）
    [self setImages:@[[UIImage imageNamed:@"refresh_down_1"]] forState:MJRefreshStatePulling];
    
    // 设置正在刷新状态的动画图片
    [self setImages:imageArray forState:MJRefreshStateRefreshing];
    
    self.lastUpdatedTimeLabel.hidden=YES;
    self.stateLabel.hidden=YES;
}

- (void)placeSubviews{
    [super placeSubviews];
}
@end
